import request from '@/utils/request'

export function getEntryList(data) {
  return request({
    url: `/v1/entry/information/list`,
    method: 'get',
    params: data
  })
}

export function getInterviewList(data) {
  return request({
    url: `/v1/entry/interview/see`,
    method: 'get',
    params: data
  })
}

export function getInterview(id) {
  return request({
    url: `/v1/entry/interview/see/${id}`,
    method: 'get'
  })
}

export function examineInterview(data) {
  return request({
    url: `/v1/entry/interview/examine`,
    method: 'post',
    data: data
  })
}

export function getEntry(id) {
  return request({
    url: `/v1/entry/information/${id}`,
    method: 'get'
  })
}

export function examineEntry(data) {
  return request({
    url: `/v1/entry/information/audit`,
    method: 'put',
    params: data
  })
}

export function qrcodeEntry() {
  return request({
    url: `/v1/entry/interview/qrcode`,
    method: 'post'
  })
}

export function replenishEntry(data) {
  return request({
    url: `/v1/basic/user/supplementary`,
    method: 'get',
    params: data
  })
}

// 入职与面试各类数据统计
export function entryOrInterviewData(data) {
  return request({
    url: '/v1/statistics/entry',
    method: 'GET',
    data
  })
}
